package com.example.ibsp_demo.pojo.entity.message;

import java.time.LocalDateTime;

public class CommentMessage {
    private int commentId;
    private int commenterId;
    private String commenterName;
    private String commenterAvatar;
    private int contentId;
    private String contentTitle;
    private String commentText;
    private LocalDateTime commentTime;
    private boolean isRead;

    public CommentMessage() {
    }

    public CommentMessage(int commentId, int commenterId, String commenterName, String commenterAvatar, 
                         int contentId, String contentTitle, String commentText, LocalDateTime commentTime, boolean isRead) {
        this.commentId = commentId;
        this.commenterId = commenterId;
        this.commenterName = commenterName;
        this.commenterAvatar = commenterAvatar;
        this.contentId = contentId;
        this.contentTitle = contentTitle;
        this.commentText = commentText;
        this.commentTime = commentTime;
        this.isRead = isRead;
    }

    // Getters and Setters
    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public int getCommenterId() {
        return commenterId;
    }

    public void setCommenterId(int commenterId) {
        this.commenterId = commenterId;
    }

    public String getCommenterName() {
        return commenterName;
    }

    public void setCommenterName(String commenterName) {
        this.commenterName = commenterName;
    }

    public String getCommenterAvatar() {
        return commenterAvatar;
    }

    public void setCommenterAvatar(String commenterAvatar) {
        this.commenterAvatar = commenterAvatar;
    }

    public int getContentId() {
        return contentId;
    }

    public void setContentId(int contentId) {
        this.contentId = contentId;
    }

    public String getContentTitle() {
        return contentTitle;
    }

    public void setContentTitle(String contentTitle) {
        this.contentTitle = contentTitle;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    @Override
    public String toString() {
        return "CommentMessage{" +
                "commentId=" + commentId +
                ", commenterId=" + commenterId +
                ", commenterName='" + commenterName + '\'' +
                ", commenterAvatar='" + commenterAvatar + '\'' +
                ", contentId=" + contentId +
                ", contentTitle='" + contentTitle + '\'' +
                ", commentText='" + commentText + '\'' +
                ", commentTime=" + commentTime +
                ", isRead=" + isRead +
                '}';
    }
}